package executable.instance.inheritance;

public class FieldInheritanceC extends FieldInheritanceB {

    private int number = 66666;
    private FieldInheritanceB superNamedB = new FieldInheritanceB();
    private FieldInheritanceA superNamedA = new FieldInheritanceB();
    private FieldInheritanceA superNamedA2 = new FieldInheritanceA();

    @Override
    public void setFamilyNumber(int number) {
        this.number = number;
        super.setFamilyNumber(number);
    }

    @Override
    public int getFamilyNumberSum() {
        return number + super.getFamilyNumberSum();
    }

    public int getNumber1() {
        return superNamedB.getNumber();
    }

    public int getNumber2() {
        return superNamedA.getNumber();
    }

    public int getNumber3() {
        return superNamedA2.getNumber();
    }

}
